Carbon


GetMenuItemModifiers

Header: Menus.h Carbon status: Supported

Obtains the modifier keys that must be pressed with a character key to select a particular menu item.

OSErr GetMenuItemModifiers (
    MenuHandle inMenu, 
    SInt16 inItem, 
    UInt8 *outModifiers
);
inMenu

A handle to the menu that contains the menu item for which you wish to get the modifier key(s).

inItem

An integer representing the item number of the menu item.

outModifiers

A pointer to an unsigned 8-bit value. On return, the bits of the value are set to indicate the modifier keys that can be used in selecting the menu item; see “Modifier Key Mask Constants”.

function result

A result code.

DISCUSSION

See also the function SetMenuItemModifiers.

VERSION NOTES

This function is available with Appearance Manager 1.0 and later.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when CarbonLib 1.0 or later is installed. Exported by CarbonLib 1.0 and later and by CarbonLib 1.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/14/2000)